import {
	httpGet,
	httpPost,
	httpPut
} from "../utils/request"

// 获取首页轮播图的数据
export const getHomeBannerApi = (data) => {
	return httpPost('/banners/search', data)
}
// 查询健康头条

export const getHealthHeadlinesApi = (data) => {
	return httpPost('/articles/search', data)
}
// 根据用户的id去获取用户签约团队
export const getByResidentIdApi = (data) => {
	return httpGet('/residents/getTeams', data)
}


// 修改居民
export const upDateREsidentApi = (data) => {
	return httpPut('/residents/update', data)
}

// 修改居民信息和头像
export const upDateREsidentDetailApi = (data) => {
	return httpPost('/residents/updateAvatar', data)

}